home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Essentials / MacApp Documentation / MacApp.TECH$ Archives / 1990 / Dec 90 / MacApp.Tech$ 12⁄7⁄90 / 2460-RE[2] Window closed?-Dec90 < prev    next >
Encoding:
Text File  |  1991-03-06  |  1.7 KB  |  42 lines  |  [TEXT/GEOL]

  1. Item    6832554                         5-Dec-90        23:50PST
  2.  
  3. From:   D0416                           Futuresoft System Design,PRT
  4.  
  5. To:     DAWSON.M                        Dawson, Mark
  6.  
  7. cc:     GER.XSE0096                     Germany - Ciechowski Computer,IDV
  8.         MACAPP.TECH$                    MacApp Technical
  9.  
  10. Sub:    RE[2] Window closed?
  11.  
  12. Mark,
  13.  
  14. >I don't think MacApp uses fChangeCount for anythingbut a true (>0) or false
  15. >(0)
  16. >value (it doesn't seem to in its TDocument::Close() procedure).  It also
  17. >doesn't seem to reset it after a save (meaning that you'll have to add a
  18. >this->fChangeCount = 0 in your TDocument::Save(), if you want the "Save" to
  19. >grey out after you save a document, but before any new information has been
  20. >added to that document).
  21.  
  22. MacApp DOES, in most cases, automatically maintain the fChangeCount including
  23. after (actually during) Save. It also automatically maintains fChangeCount for
  24. Doing, ReDoing and UnDoing commands (if the command’s fCausesChange is TRUE) as
  25. well as Reverting documents.
  26.  
  27. I have found it is only necessary to set fChangeCount when I am modifying the
  28. document’s saved data or state directly without instantiating a command to do
  29. the task.
  30.  
  31. I’m converting the few places that I do modify a doc’s data or state to doing
  32. it via a TCommand subclass instead of directly. This will make things much
  33. easier to incorporate some System 7 features especially AppleEvents. There is
  34. also more memory available at aCommand.DoIt time because MacApp unloads all
  35. unncessary segments before executing commands. MacApp in the current
  36. 2.0{.whatever} itself has changed many functions since alpha and beta to do
  37. almost all things through commands including “Quit”. Hmm…
  38.  
  39. Oh well, take care,
  40. -TKen_Addison.OuttaHereCommand
  41.  
  42.